package tests.jdk8_new_feature.function_interface;

import org.junit.Test;

import java.sql.SQLOutput;

/**
 * @Author: SunAo
 * @Date: 2020/10/30 11:04
 * @Description:
 */
public class ActionOperation {

    public void hahaah(Any any){
        System.out.println("Hello World");
        any.action();
        System.out.println("World End");
    }

    @Test
    public void test(){
        hahaah(()-> System.out.println("Fuck Hello"));
    }
}
